package com.nx.samuel.async_demo.provider.impl;

import com.nx.samuel.async_demo.api.WorldService;

import java.util.concurrent.TimeUnit;


public class WorldServiceImpl implements WorldService {

    @Override
    public String sayHello(String username) {

        try {
            TimeUnit.SECONDS.sleep(2);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "world" + username;
    }
}
